var i = require("../../../../common/vendor.js"), t = require("../../../uv-ui-tools/libs/mixin/mpMixin.js"), e = require("../../../uv-ui-tools/libs/mixin/mixin.js"), n = require("./props.js");

require("../../../uv-ui-tools/libs/function/index.js"), require("../../../uv-ui-tools/libs/function/test.js"), 
require("../../../uv-ui-tools/libs/function/digit.js"), require("../../../uv-ui-tools/libs/util/route.js"), 
require("../../../uv-ui-tools/libs/function/debounce.js"), require("../../../uv-ui-tools/libs/function/throttle.js");

var o = {
    name: "uv-link",
    emits: [ "click" ],
    mixins: [ t.mpMixin, e.mixin, n.props ],
    computed: {
        linkStyle: function() {
            return {
                color: this.color,
                fontSize: this.$uv.addUnit(this.fontSize),
                lineHeight: this.$uv.addUnit(this.$uv.getPx(this.fontSize) + 2),
                textDecoration: this.underLine ? "underline" : "none"
            };
        }
    },
    methods: {
        openLink: function() {
            var t = this;
            i.index.setClipboardData({
                data: this.href,
                success: function() {
                    i.index.hideToast(), t.$nextTick(function() {
                        t.$uv.toast(t.mpTips);
                    });
                }
            }), this.$emit("click");
        }
    }
}, s = i._export_sfc(o, [ [ "render", function(t, e, n, o, s, u) {
    return {
        a: i.t(t.text),
        b: i.o(function() {
            return u.openLink && u.openLink.apply(u, arguments);
        }),
        c: i.s(u.linkStyle),
        d: i.s(t.$uv.addStyle(t.customStyle))
    };
} ], [ "__scopeId", "data-v-9a688456" ] ]);

wx.createComponent(s);